<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Task Creation</title>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="${pageContext.request.contextPath}/resource/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form:form method="POST" name="taskform" commandName="task"
		action="${pageContext.request.contextPath}/task/add/save.htm">
		<a href="<c:url value="/task/list.htm"/>">Home</a>
		<fieldset>
			<legend>Task Detail</legend>
			<table>
				<tr>
					<td colspan="2"><input type="submit" value="Create" /></td>

				</tr>
				<%-- <tr>
					<td><form:label path="task_id">Task Id</form:label></td>
					<td><form:input path="task_id" /></td>
				</tr> --%>
				<tr>
					<td><form:label path="subject">Subject</form:label></td>
					<td><form:input path="subject" /> <form:errors path="subject" class="form_error"/></td>
				</tr>
				<tr>
					<td><form:label path="type">Type</form:label></td>
					<td><form:select path="type">
							<form:options items="${types}" itemValue="value"
								itemLabel="label" />
						</form:select></td>
				</tr>
				<tr>
					<td><form:label path="status">Status</form:label></td>
					<td><form:select path="status">
							<form:options items="${status}" itemValue="value"
								itemLabel="label" />
						</form:select></td>
				</tr>
				<tr>
					<td><form:label path="priority">Priority</form:label></td>
					<td><form:select path="priority">
							<form:options items="${priorities}" itemValue="value"
								itemLabel="label" />
						</form:select></td>
				</tr>
				<tr>
					<td><form:label path="assignee.user_id">Assignee</form:label></td>
					<td><form:input path="assignee.user_id" /><form:errors path="assignee.user_id" class="form_error"/></td>
				</tr>

				<tr>
					<td><form:label path="start_date">Start Date</form:label></td>
					<td><form:input path="start_date" /></td>
				</tr>
				<tr>
					<td><form:label path="due_date">Due Date</form:label></td>
					<td><form:input path="due_date" /></td>
				</tr>

				<tr>
					<td><form:label path="complete_progress">Progress</form:label></td>
					<td><form:input path="complete_progress" /></td>
				</tr>

				<tr>
					<td><form:label path="reminder">Reminder</form:label></td>
					<td><form:select path="reminder">
							<form:options items="${reminders}" itemValue="value"
								itemLabel="label" />
						</form:select></td>
				</tr>

				<%-- <tr>
					<td><form:label path="createby">Create By</form:label></td>
					<td><form:input path="createby" /></td>
				</tr>

				<tr>
					<td><form:label path="updateby">Update By</form:label></td>
					<td><form:input path="updateby" /></td>
				</tr>

				<tr>
					<td><form:label path="create_date">Creation Date</form:label></td>
					<td><form:input path="create_date" /></td>
				</tr>

				<tr>
					<td><form:label path="update_date">Update Date</form:label></td>
					<td><form:input path="update_date" /></td>
				</tr>
 --%>
				<tr>
					<td><form:label path="description">Description</form:label></td>
					<td><form:textarea path="description" /></td>
				</tr>

			</table>
		</fieldset>
	</form:form>
</body>
</html>